<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
#用户相关业务
Route::get('/user/{id}', 'UserController@detail');#用户详情
Route::post('/user', 'UserController@create');#创建用户
Route::put('/user', 'UserController@update');#更新用户信息
Route::delete('/user/{id}', 'UserController@delete');#删除用户
Route::post('/login', 'UserController@login');#用户登陆

#短信相关业务
Route::post('/sms', 'SmsController@send');#发短信

#国家信息
Route::get('/countryCode', 'CountryCodeController@index');